from django.urls import path, re_path

from rent_pro import consumers, consumers1

# from channels.routing import route


websocket_urlpatterns = [
    # 示例 url ： xxxxx/room/x1/
    path("", consumers.YourConsumer.as_asgi()),
    path('room/<id>/', consumers1.ChatConsumer.as_asgi()),#consumers相当于之前的视图
]

